<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ page import="org.dom4j.*"%>
<%@ page import="org.dom4j.io.*"%>

<%

SAXReader sax= new SAXReader();
Document document= sax.read(request.getInputStream());
Element root=document.getRootElement();
String name= root.element("userName").getStringValue();
String passwd=root.element("passWord").getStringValue();
String msg=" ";
if(name.equals("Tom")){
	msg="登录成功";
}else
{
	msg="登录失败";
}
response.getWriter().write(msg);
%>